package com.android.tgapp;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class Receiver extends BroadcastReceiver

{
	static final String ACTION = "android.intent.action.BOOT_COMPLETED";

	public void onReceive(Context context, Intent intent) {

		if (intent.getAction().equals(ACTION)) {

			Intent mBootIntent = new Intent(context, TGAPPActivity.class);
			mBootIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			// context.startActivity(mBootIntent);
			context.startService(mBootIntent);
		}
	}
}
